package com.dhu.auth.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author gongjiawei
 * @Date 2024/6/14 15:03
 * @注释
 */
@Getter
@AllArgsConstructor
public enum IsDeletedFlagEnum {
    DELETED(1,"已删除"),
    UN_DELETED(0,"未删除");
    private final Integer code;
    private final String desc;

   public static IsDeletedFlagEnum getByCode(int codeValue){
       for (IsDeletedFlagEnum value : IsDeletedFlagEnum.values()) {
           if (value.code==codeValue)
               return value;

       }
       return null;
    }
}
